class World:

    def __init__(self, framework):
        self._framework = framework

    def set_action(self, name, action):
        send_data = {"command": "world:message", "body": {"type": "action", "name": name, "action": action}}
        self._framework.utils.service.write(send_data);

    def set_move(self, name, axis, rice):
        send_data = {"command": "world:message", "body": {"type": "move", "name": name, "axis": axis, "rice": rice}}
        self._framework.utils.service.write(send_data);

    def set_angle(self, name, axis, angle):
        send_data = {"command": "world:message", "body": {"type": "angle", "name": name, "axis": axis, "angle": angle}}
        self._framework.utils.service.write(send_data);
